<template>
    <view style="height: 100%">
        <!-- template对应的原始代码，为保证正常显示，已对其进行隐藏。 -->
        <block name="msgItem" v-if="false">
            <scroll-view :scroll-Y="true" style="height: 100%" :id="item.type" @scrolltolower="bindlower">
                <!--
      <view class="banner">
        <swiper indicator-dots="true" autoplay="true" interval="5000" duration="1000">
          <block wx:for="{{item.banner}}" wx:key="index">
            <swiper-item>
              <image mode="aspectFill" src="{{item.thumb}}" bindtap="todetail" id="{{item.id}}"/>
            </swiper-item>
          </block>
        </swiper>
      </view>
      <view class = "topMall">
        <block wx:for="{{item.top}}" wx:key="index">
          <view bindtap="todetail" id="{{item.id}}">
            <image src="{{item.thumb}}" mode="aspectFill"/>
            <view class="name">{{item.title}}</view>
            <view><text class="now_price">{{item.price}}</text><text class="org_price"></text></view>
          </view>
        </block>
      </view>
      <view class="promotion">
        <image src="{{item.sales.thumb}}" mode="scaleToFill"/>
        <view class="pinfo" id="{{item.sales.id}}" bindtap="todetail">
          <view class="pinfo-1">{{item.sales.title}}</view>
          <view class="pinfo-3">特卖</view>
        </view>
      </view>
      -->
                <view class="listMall">
                    <block v-for="(item, index) in item.list" :key="index">
                        <view @tap="toProductDetail" :id="item.id">
                            <view class="img"><image :src="item.productPic" mode="aspectFill" /></view>
                            <view class="name">{{ item.productTitle }}</view>
                            <view class="desc">{{ item.productDesc }}</view>
                            <view>
                                <text class="now_price">￥{{ item.productPrice }}</text>
                            </view>
                        </view>
                    </block>
                </view>
            </scroll-view>
        </block>
    </view>
</template>

<style lang="scss">
@import './woshi.scss';
</style>
